﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Driver.Const
{
    public static class ConfManager
    {
        private static string defaultProject = System.Configuration.ConfigurationManager.AppSettings["DefaultProject"];
        private static string defaultAppPath=System.Configuration.ConfigurationManager.AppSettings["DefaultAppPath"];
        private static string defaultExcelFile = System.IO.Directory.GetCurrentDirectory() + "\\" + ConfManager.DefaultAppPath + "\\" + ConfManager.DefaultProject + "\\" + System.Configuration.ConfigurationManager.AppSettings["ExcelFile"];
        private static string defaultDataAcessObject = System.Configuration.ConfigurationManager.AppSettings["DataAccessObject"];
        private static string defaultObjectPath = System.IO.Directory.GetCurrentDirectory() + "\\" + ConfManager.DefaultAppPath + "\\" + ConfManager.DefaultProject + "\\";
        private static int defaultNumofThread = int.Parse(System.Configuration.ConfigurationManager.AppSettings["NumOfThread"]);
        private static int defaultRampupPeriod = int.Parse(System.Configuration.ConfigurationManager.AppSettings["RampupPeriod"]);
        public static string DefaultProject
        {
            get{return defaultProject;}
            set { defaultProject = value;}
        }
        public static string DefaultAppPath
        {
            get{return defaultAppPath;}
            set { defaultAppPath = value; }
        }

        public static string DefaultExcelFile
        {
            get { return defaultExcelFile; }
            set { defaultExcelFile = value; }
        }

        public static string DefaultDataAccessObject
        {
            get { return defaultDataAcessObject; }
            set { defaultDataAcessObject = value; }
        }

        public static string DefaultObjectPath
        {
            get { return defaultObjectPath; }
            set { defaultObjectPath = value; }
        }

        public static int DefaultNumofThread
        {
            get { return defaultNumofThread; }
            set { defaultNumofThread =value;}
        }

        public static int DefaultRamupPeriod
        {
            get { return defaultRampupPeriod; }
            set { defaultRampupPeriod = value; }
        }
    }
}
